package team.archai.nexus.boot.platform.core.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lishibin
 * @desc: 返回page信息
 * @date 2021-11-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "分页响应实体")
public class PageResult<T> {

    @Schema(description = "数据总数")
    private Long total;
    @Schema(description = "当前记录")
    private List<T> records;
    @Schema(description = "当前页", example = "1")
    private long current;
    @Schema(description = "分页大小", example = "10")
    private long size;
}
